-
Notifications
You must be signed in to change notification settings - Fork 101
Add an option to disable QEMU testing #586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
smithp35
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code change LGTM, I think we may want to change the help text.
arm-multilib/CMakeLists.txt
Outdated
| file(READ ${variant_json_file} variant_json_str) | ||
| string(JSON test_executor GET ${variant_json_str} "args" "common" "TEST_EXECUTOR") | ||
|
|
||
| # FVP testing should default to off, so override any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this comment need to be revised now that both FVP and QEMU testing is optional?
arm-multilib/CMakeLists.txt
Outdated
| set(LIBC_HDRGEN "" CACHE PATH "Path to prebuilt lbc-hdrgen if not included in LLVM binaries set by LLVM_BINARY_DIR") | ||
| option( | ||
| ENABLE_QEMU_TESTING | ||
| "Tests using QEMU are enabled by default, but can be disabled." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The help text, while correct, doesn't fit well with ENABLE_QEMU_TESTING. It would fit better with a DISABLE_QEMU_TESTING option.
Perhaps
Enable tests that use QEMU. This option is ON by default.
If the text is changed, would be good to update the other places too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, and updated FVP options to match.
Testing with QEMU is implicitly enabled by default, but configuring the project to run with tests requires QEMU. As testing with QEMU is considered optional, it should be possible to disable tests when QEMU is not available or testing is not needed. Since there is already an option for controlling FVP testing, this patch adds a similar option for QEMU, ENABLE_QEMU_TESTING, which instead defaults to ON. This can then be turned off when QEMU is not installed, so that configurations where QEMU is expected can suitably detect and show an error when it is missing.
2148e46 to
2c8cc0f
Compare
smithp35
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the update.
Testing with QEMU is implicitly enabled by default, but configuring the project to run with tests requires QEMU. As testing with QEMU is considered optional, it should be possible to disable tests when QEMU is not available or testing is not needed.
Since there is already an option for controlling FVP testing, this patch adds a similar option for QEMU, ENABLE_QEMU_TESTING, which instead defaults to ON. This can then be turned off when QEMU is not installed, so that configurations where QEMU is expected can suitably detect and show an error when it is missing.